package com.sora.transport;

import com.sora.serializer.CommonSerializer;

/**
 * @Classname: RpcServer
 * @Description:
 * @Author: Stonffe
 * @Date: 2023/4/30 19:46
 */
public interface RpcServer {
    int DEFAULT_SERIALIZER = CommonSerializer.KRYO_SERIALIZER;
    /**
     * 启动
     */
    void start();

    <T> void publishService(T service, String serviceName);
}
